package com.wsjc.manager.service.rpc.data;

import java.util.List;
import java.util.Map;

import com.wsjc.common.core.annotation.datasource.DataSource;
import com.wsjc.common.core.annotation.datasource.DynamicDataSourceGlobal;
import com.wsjc.manager.entity.WjHospital;
import com.wsjc.manager.entity.WjSterilization;
import com.wsjc.manager.entity.WjUser;

public interface WjSynDataService {
	
	
	@DataSource(DynamicDataSourceGlobal.READ)
	public List<WjUser> queryOldTableUsers(Map<String, Object> params) ;
	
	
	@DataSource(DynamicDataSourceGlobal.WRITE)
	public void synUser(List<WjUser> users) ;
	
	
	@DataSource(DynamicDataSourceGlobal.READ)
	public List<WjHospital> queryOldTableHospitals(Map<String, Object> params) ;
	
	
	@DataSource(DynamicDataSourceGlobal.WRITE)
	public void synHospital(List<WjHospital> hospitals) ;
	
	
	@DataSource(DynamicDataSourceGlobal.READ)
	public List<WjSterilization> queryOldTableSterilization(Map<String, Object> params) ;
	 
	
	@DataSource(DynamicDataSourceGlobal.WRITE)
	public void saveSterilizationToLocal(List<WjSterilization> sterilizations) ;
	
	@DataSource(DynamicDataSourceGlobal.WRITE)
	public void synSterilization(List<WjSterilization> sterilizations) ;


	public void downOssFile(Map<String, String> paths);
	
	
	
	
	

}
